package pro.zfb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import org.springframework.stereotype.Repository;
import pro.zfb.entity.TZfbFollow;
import pro.zfb.entity.TZfbFollowExample;

/**
 * <p>
 * 支付宝用户关注与取消关注相关的mapperDAO
 * </p>
 *
 * @author 杨阳
 * @since 2017年10月11日
 */
@Repository
public interface TZfbFollowMapper {

    long countByExample(TZfbFollowExample example);

    int deleteByExample(TZfbFollowExample example);

    int deleteByPrimaryKey(@Param("id") String id, @Param("openid") String openid);

    int insert(TZfbFollow record);

    int insertSelective(TZfbFollow record);

    List<TZfbFollow> selectByExample(TZfbFollowExample example);

    TZfbFollow selectByPrimaryKey(@Param("id") String id, @Param("openid") String openid);

    int updateByExampleSelective(@Param("record") TZfbFollow record, @Param("example") TZfbFollowExample example);

    int updateByExample(@Param("record") TZfbFollow record, @Param("example") TZfbFollowExample example);

    int updateByPrimaryKeySelective(TZfbFollow record);

    int updateByPrimaryKey(TZfbFollow record);
}